<?php
/**
 * Create by 11li
 * Date 2020/2/10
 * Time 10:55
 *
 */

namespace app\common\service;


use think\Db;

class MessageService extends BaseService
{
	
	
	public function getListByUserId($page, $userId)
	{
		$where = [
			'm.user_id' => $userId
		];
		
		$total = Db::name('message')->alias('m')
			->where($where)
			->count();
		
		$list = [];
		if($total > 0) {
//			$list = Db::name('message')->alias('m')
//				->join('user u', 'm.')
		}
	}
}